package com.unionfetch.content_home.bean

import android.net.Uri

class UploadItem(
    var itemType: Int,
    var url: String? = null,
    var path: String? = null,
    var localPath: Uri? = null,
    var name: String? = null,
    var progress: Int? = null,
    var error: String? = null,
    var uploadState: Int = State.DEFAULT
) {

    companion object {
        const val ADD_ITEM = 1
        const val IMAGE_ITEM = 2
        const val PDF_ITEM = 3
    }

    object State {
        const val DEFAULT = -1
        const val UPLOADING = 1
        const val SUCCESS = 2
        const val FAILED = 3
    }
}